<template>
  <div class="contents">
    <el-tabs v-model="activeName">
      <el-tab-pane label="异常订单" name="first">
        <el-form class="demo-form-inline" :inline="true" :model="formInline">
          <el-form-item label="发货日期:">
            <el-date-picker
              v-model="formInline.date"
              end-placeholder="结束日期"
              range-separator="-"
              start-placeholder="开始日期"
              style="width: 200px"
              type="daterange"
            />
          </el-form-item>
          <el-form-item label="订单状态:">
            <el-select v-model="formInline.status" placeholder="请选择">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
            </el-select>
          </el-form-item>
          <el-form-item label="搜索:">
            <el-input v-model="formInline.desc" placeholder="商品名称" />
          </el-form-item>
          <el-form-item>
            <el-button type="primary">查询</el-button>
          </el-form-item>
        </el-form>
        <el-table :data="bnormalData" style="width: 100%; margin-top: 8px">
          <el-table-column label="订单号" prop="date" />
          <el-table-column label="客户名称" prop="name" />
          <el-table-column label="提示" prop="address" />
          <el-table-column label="下单金额" prop="address" />
          <el-table-column label="发货日期" prop="address" />
          <el-table-column label="备注" prop="address" />
          <el-table-column label="订单状态" prop="address" />
          <el-table-column label="付款状态" prop="address" />
          <el-table-column label="订单来源" prop="address" />
          <el-table-column label="操作" prop="address" />
        </el-table>
        <el-pagination
          background
          layout="total, prev, pager, next, sizes"
          :page-size="10"
          :page-sizes="[20, 30, 40, 50]"
          style="text-align: right"
          :total="0"
        />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        activeName: 'first',
        formInline: {
          date: '',
          status: '',
          desc: '',
        },
        options: [
          {
            value: '0',
            label: '全部状态',
          },
          {
            value: '1',
            label: '未付款',
          },
          {
            value: '2',
            label: '已付款',
          },
        ],
        bnormalData: [],
      }
    },
  }
</script>

<style lang="scss" scoped>
  .contents {
    padding: 0 20px;
  }
</style>
